home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8203 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1019 b 

  1. Path: news.mindlink.net!news
  2. From: mike_huwe@mindlink.bc.ca (Mike Huwe)
  3. Newsgroups: comp.lang.c
  4. Subject: *** Need help ASAP *** CLS, LOCATE, etc do not work with Borland 3.1 for dos
  5. Date: 2 Mar 1996 10:08:46 GMT
  6. Organization: Your Organization
  7. Message-ID: <4h96ne$3nb@fountain.mindlink.net>
  8. NNTP-Posting-Host: line080.nwm.mindlink.net
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.6
  12.  
  13. I am using Borland C++ 3.1. When I run simple programs that clear the
  14. screen or use the LOCATE command, they don't work. for example,
  15. When I run a program the output stays at the top of the screen. When I run
  16. the program again the new output is shown below the old output.
  17.  
  18. If I use the LOCATE macro, the statements are printed below
  19. each other rather than at the specified cursor location.
  20.  
  21. Does anyone know what the problem is?
  22.  
  23. Please e-mail me with your responses. Thanks in advance.
  24.  
  25. Mike
  26.  
  27. I used the following:
  28.  
  29. #define CLS printf("\033[2j")
  30. #define LOCATE(r,c) printf("\033[%d;%dH",r,c)
  31.  
  32.